//
//  XTAppMobClick.m
//  XTAppExtension
//
//  Created by 谢特 on 2017/5/10.
//  Copyright © 2017年 xiete. All rights reserved.
//

#import "XTAppMobClick.h"
#import "UMMobClick/MobClick.h"

@implementation XTAppMobClick
+ (void)registUMWithAppKey:(NSString *)appkey {
    UMConfigInstance.appKey = appkey;
    [MobClick startWithConfigure:UMConfigInstance];
    [MobClick setAppVersion:XcodeAppVersion];
}

+ (void)event:(NSArray *)keyPath value:(int)value label:(NSString *)label {
    [MobClick event:keyPath value:value label:label];
}

+ (void)event:(NSString *)eventId {
    [MobClick event:eventId];
}

+ (void)event:(NSString *)eventId label:(NSString *)label {
    [MobClick event:eventId label:label];
}

+ (void)event:(NSString *)eventId attributes:(NSDictionary *)attributes {
    [MobClick event:eventId attributes:attributes];
}

+ (void)event:(NSString *)eventId attributes:(NSDictionary *)attributes counter:(int)number {
    [MobClick event:eventId attributes:attributes counter:number];
}

+ (void)beginEvent:(NSString *)eventId {
    [MobClick beginEvent:eventId];
}

+ (void)endEvent:(NSString *)eventId {
    [MobClick endEvent:eventId];
}

+ (void)beginEvent:(NSString *)eventId label:(NSString *)label {
    [MobClick beginEvent:eventId label:label];
}

+ (void)endEvent:(NSString *)eventId label:(NSString *)label {
    [MobClick endEvent:eventId label:label];
}

+ (void)beginEvent:(NSString *)eventId primarykey:(NSString *)keyName attributes:(NSDictionary *)attributes {
    [MobClick beginEvent:eventId primarykey:keyName attributes:attributes];
}

+ (void)endEvent:(NSString *)eventId primarykey:(NSString *)keyName {
    [MobClick endEvent:eventId primarykey:keyName];
}

+ (void)event:(NSString *)eventId durations:(int)millisecond {
    [MobClick event:eventId durations:millisecond];
}

+ (void)event:(NSString *)eventId label:(NSString *)label durations:(int)millisecond {
    [MobClick event:eventId label:label durations:millisecond];
}

+ (void)event:(NSString *)eventId attributes:(NSDictionary *)attributes durations:(int)millisecond {
    [MobClick event:eventId attributes:attributes durations:millisecond];
}
@end
